Cleaning up a Process for a SAN

When an application is ready to clean up the process in which it is running, it initiates a call to the Windows Sockets switch's WSPCleanup function. The switch, in turn, calls the WSPCleanup function of the TCP/IP provider and all SAN service providers. All providers are expected to release any resources that they were using. Resources can include, for example, objects used to synchronize events and memory used to perform data transfers.