Added a generic handler that fires on all events.