Close the connection to the server.
@override Future close() { if (_socket == null) return Future.value(); final sock = _socket!; _socket = null; return sock.then((s) => Future.wait([s.drain(), s.close()])); }