Changed the mail check class to log exceptions rather than dump
them to console.