title: How to manually close a websocket
body: <p>If I'm not using a context for a websocket, how would I manually close it? When I try running conn.close() I get an <code>event loop is closed</code> error. Here is what I have so far:</p>
  
  <pre><code>from asgiref.sync import async_to_sync
  import websockets
  
  # connect -- works OK
  conn = async_to_sync(websockets.connect)("ws://localhost:8000/ws/registration/123/")
  
  # send message -- works OK
  async_to_sync(conn.send)("hello")
  
  # disconnect -- doesn't work
  async_to_sync(conn.close)()
  </code></pre>
  
  <p>What should the last part of this be?</p>