Generic exception handler

This exception handler is used from various places within the
AlarmNotifications application to mitigate exceptions and other error
conditions.