set Error Handler
Sets the error handler for listener errors.
The error handler receives the event that was being dispatched and the exception thrown by the failing listener.
Parameters
handler
Error handler function, or null to disable