Implemented Event.detach method.
Implemented error handling for EventHandler constructor.