Fix a crash on exit in WinLauncher