add email notifications on success and failures.