Add ability to send e-mails on error