async def close(self):
<EOL>await self._close()<EOL>req = protocol.CloseRequest()<EOL>req.clientID = self._client_id<EOL>msg = await self._nc.request(<EOL>self._close_req_subject,<EOL>req.SerializeToString(),<EOL>self._connect_timeout,<EOL>)<EOL>resp = protocol.CloseResponse()<EOL>resp.ParseFromString(msg.data)<EOL>if resp.error != "<STR_LIT>":<EOL><INDENT>raise StanError(resp.error)<EOL><DEDENT>
Close terminates a session with NATS Streaming.