Updated global error event handlers. Updated all instances where the events are fired.