I\'m trying to stop the while loop execution from inside the foo() function. I\'ve tried exit() / sys.exit without success. How can I stop completely the execution of the pr