Hi tracy, I just ran across this issue myself and fixed it. In the email module, there's a file called "EmailHandler.java". In there, replace line 313 with this:
if(moveFolder.isOpen()) {
moveFolder.close(true);
}
I don't believe this module is on GitHub, so I've created a Mendix Support ticket to have it reviewed.