add ability to send failure notifications by email