code: def stop(self):
          
          if self._http_server is not None:
              self._http_server.stop()
          tornado.ioloop.IOLoop.instance().add_callback(
              tornado.ioloop.IOLoop.instance().stop)
docs: Stop the worker.