Now Mailimport also uses the new closeDB callback when exiting the process.