exiting debuging in main.cpp