Stopping Sanic always gives me an error

I have a very simple test Sanic app as follows, taken from the example page. When I Ctrl C to stop it, I get the following error:

*File "", line 13, in <module>*
*"", port=8000, debug=True)*
*  File "/home/mike/.local/lib/python3.8/site-packages/sanic/mixins/", line 209, in run*
*    serve(primary=self)  # type: ignore*
*  File "/home/mike/.local/lib/python3.8/site-packages/sanic/mixins/", line 880, in serve*
*    sock.shutdown(SHUT_RDWR)*
*OSError: [Errno 107] Transport endpoint is not connected*

This example is running under WSL, but also have the same app running on the Pi for testing and get a similar (but not the same error). Server is started as " python3".

app = Sanic(__name__)

async def test(req):
    return res.text("I\'m a teapot")

if __name__ == '__main__':"", port=8000, debug=True)