Lock event queue during handling of events. Proper traceback on exceptions
thrown in an event handler.