The program goes through a loop where the program closes then restarts. What do I need to do to stop this.