code: def close(self):
          
          for handle in self._handles:
              if not handle.closed:
                  handle.close()
          del self._handles[:]
          for transport, _ in self.connections:
              transport.close()
          self._all_closed.wait()
docs: Close the listening sockets and all accepted connections.