Allow additional close handlers to be registered on the websocket (#133)