Add support for closehandler in events conduit.