add ability to break out of final while(1) loop when debugging main app