Registers a handler called on disconnection.
@param handler the exception handler.
See Implementation
Registers a handler called on disconnection.
@param handler the exception handler.