Remote simulators are broken in Python 3.12
This is related to the following issue on the Python side: https://github.com/python/cpython/issues/104344.
Apparently, the behavior of async with server
was to wait for all connections to be closed at the end. Up to 3.11 it would just close the server (but keep the connections open) at the end. We currently rely on that behavior.