Add on_error event and allow the handler to implement a subset of the even handlers