fix crash when phd2 is shutdown via the server API when there is an open modal window (Advanced settings, New profile wizard, etc.) Fixes #679
fix crash when phd2 is shutdown via the server API when there is an open modal window (Advanced settings, New profile wizard, etc.) Fixes #679

OpenPHDGuiding/phd2,OpenPHDGuiding/phd2,OpenPHDGuiding/phd2,OpenPHDGuiding/phd2,OpenPHDGuiding/phd2,OpenPHDGuiding/phd2