code: def _on_server_disconnect(self, exception):
          
          self._protocol = None
          if self._on_disconnect_callback_func and callable(self._on_disconnect_callback_func):
              self._on_disconnect_callback_func(exception)
          if self._reconnect:
              self._reconnect_cb()
docs: Handle server disconnection.