188.8.131.52 Receiving an SMB2 TREE_DISCONNECT Response
The client MUST locate the session in the Connection.SessionTable using the SessionId in the SMB2 header of the response. It MUST locate the tree connect in the Session.TreeConnectTable using the TreeId in the SMB2 header of the response. The associated tree connect object MUST be removed from the Session.TreeConnectTable and freed. The client MUST return success to the application that requested the shareconnection termination, and it MUST invalidate the TreeConnect handle. If Connection.Dialect belongs to the SMB 3.x dialect family and if Session.TreeConnectTable is empty in all sessions in the Connection.SessionTable for which Connection.ServerName matches the server name, the client SHOULD invoke the event as specified in [MS-SWN] section 184.108.40.206.