Fix crash issue when user clicked cancel in UAC prompt window.