code: func (nc *Conn) SetDisconnectHandler(dcb ConnHandler) {
  	if nc == nil {
  		return
  	}
  	nc.mu.Lock()
  	defer nc.mu.Unlock()
  	nc.Opts.DisconnectedCB = dcb
  }
docs: // Handler processing
  // SetDisconnectHandler will set the disconnect event handler.