I have a program that runs recursive outside of the main method, but how do I close it. I can't use any of the usual as they only works in main.