3.1.5.9 Receiving a Close Command

If the connection (1) is not in the ‘established’ state, the recipient MUST send a ConnectClose command as specified in section 3.1.4.2, with a ReasonId of TooManyUnknownSessionCmds (0x0f). If a Close command is received with a SessionId field identifying a session for which there is no state and which is not in AttachSessionIds or RegisterSessionIds (as specified in sections 3.2.1 and 3.3.1), the recipient MUST ignore the command.

Upon receipt of a Close command, all session state for the indicated session MUST be removed.

If the Close is received by a relay-server on an outbound single-hop session, additional processing MUST be performed as specified in section 3.3.5.9.