Email notifications upon trigger failures

This update adds support for email notifications when a workflow fails at the trigger level. For example, if a workflow fails when a system is inaccessible due to invalid credentials, then an email notification is sent out.