def disconnect(self):
        """Disconnects this manager from its session and all plots."""
        if not self.is_connected:
            return

        self._session._client.remove_event_listener(
            "state_update", self._on_session_update
        )

        for name in self._plots:
            self._disconnect_plot(name)

        self._last_update = None
        self._last_updates = {}
        self._connected = False
        self._disconnected = True
Disconnects this manager from its session and all plots.
fiftyone/core/plots/manager.py