Well the time is there so every 5 minutes it checks the server status, and if its down, boots it. So thats why i've got the time there. Unless there is a way you can continueosly run the check so as soon as it goes down, it'll now and boot the program.

I just basically want the thing to keep running until the user tells it to stop running, or he exits the program.