Remove the error event handler.