Add utility to catch exceptions and send ExceptionEvents.