mainFrame exit warning