async def _remote_close(self, exc=None):
if self.state in (STATE_CLOSING, STATE_CLOSED):<EOL><INDENT>return<EOL><DEDENT>log.info("<STR_LIT>", self.id)<EOL>self.state = STATE_CLOSING<EOL>if exc is not None:<EOL><INDENT>self.exception = exc<EOL>self.interrupted = True<EOL><DEDENT>try:<EOL><INDENT>await self.handler(SockjsMessage(MSG_CLOSE, exc), self)<EOL><DEDENT>except Exception:<EOL><INDENT>log.exception("<STR_LIT>")<EOL><DEDENT>
close session from remote.