add email notification on failures