code: def stop(self):
          '''Stop server'''
          self.app = None
          if self.run_thread:
              self.run_thread = None
          if self.server:
              self.server.shutdown()
              self.server = Nonf stop(self):
          '''Stop server'''
          self.app = None
          if self.run_thread:
              self.run_thread = None
          if self.server:
              self.server.shutdown()
              self.server = None
docs: Stop server