//
// Shuts down the AppDomain
//
static void ShutdownAppDomain(object args)
{
queue_manager.Dispose();
// This will call Session_End if needed.
InternalCache.InvokePrivateCallbacks();
// Kill our application.
HttpApplicationFactory.Dispose();
ThreadPool.QueueUserWorkItem(new WaitCallback(DoUnload), null);
}