Fix error dialog at exit on Windows.