
When a session is being closed, the state needs to be checked. If the session creation failed, the session need to be only freed.
When a session is being closed, the state needs to be checked. If the session creation failed, the session need to be only freed.