def close(self) -> None:
        """
        Close any ongoing connections and stop listening.
        """
        for protocol in set(self._protocols.values()):
            protocol.close()
        self._protocols.clear()
        self._transport.close()

        Close any ongoing connections and stop listening.
        
src/aioquic/asyncio/server.py