add error logging on caught exception to mailer