Fix order of calling CoUninitialize()