Fix GUI crashes when exiting STK by clicking the X button in the window titlebar