def stop(self):
        """Stops and shuts down the server.

        Interrupts serve_forever() if necessary."""
        with self.__lock:
            if self.__in_serve_forever:
                self.shutdown()
        self.server_close()
Stops and shuts down the server.

        Interrupts serve_forever() if necessary.
fiftyone/service/ipc.py