Invoking process.exit() after mail import.