CoFreeUnusedLibraries doesn't do anything and COM_FlushMessageQueue won't actually allow any RPCs to be processed as the apartment has already been destroyed.