The method closes the stream and the underlying socket.
asyncio/StreamWriter.close
StreamWriter.close