The IMSProvider::Shutdown method closes down a message store provider in an orderly fashion.
HRESULT Shutdown(
ULONG FAR * lpulFlags
);
MAPI calls the IMSProvider::Shutdown method just before releasing the message store provider object. MAPI releases all logon objects for a provider before calling Shutdown for that provider.