The IXPProvider::Shutdown method closes down a transport provider in an orderly fashion.
HRESULT Shutdown (
ULONG FAR * lpulFlags
);
The MAPI spooler calls the IXPProvider::Shutdown method just prior to releasing a transport provider object. Before calling Shutdown, MAPI releases all logon objects for a provider.