Make sure we only CoUninitialize after successfully initializing.