async def METHOD_NAME(self) -> None:
    """Stop the server."""
    logger.debug("stopping experiment server gracefully...")
    try:
        self._server_done.set_result(None)
    except asyncio.InvalidStateError:
        logger.debug("was already gracefully asked to stop.")
        pass
    await self._server_task