Python API: Close asyncio loop

How can I close the loop created by tradeapi.stream2.StreamConn? When I call StreamConn.close(), it stops for a moment and then re-starts, looks like the run() function has a built-in restarting mechanism.

You have to pass renew=False to the close() function.