Fixed issue where single run would keep the CPU cycles going after the program finished.