Catch and report exceptions while sending mails