included exit() calls to main gui cpp