Added an exception handler to event processor