3.1.6.12 Server Service Terminates
When the server service terminates, the server MUST disable the SMB server as specified in [MS-CIFS] section 3.3.4.19, and MUST disable the SMB2 server as specified in [MS-SMB2] section 3.3.4.23.
The server MUST remove all elements from AliasList, ShareList, and TransportList.
The server MUST free AliasList, FileList, ShareList, SessionList, TransportList, and TreeConnectList.