def stop(self):
        self.server.stop()
        self.server.close()
        self._stopped = True
Overridden to tell the thrift server to shutdown asynchronously
dataset/ETHPy150Open facebook/sparts/sparts/tasks/thrift/nbserver.py/NBServerTask.stop