whitelist fix
prevent multiple call of MainWindow->Exit()