The script disconnects itself

Hi there! When I run my script it works stably, but after half a day (sometimes after full day) it turns off itself, i get in console this - "Console closed" , I do not know what the problem is, please help. (sorry my english)

Scripts that you run from consoles don't run forever -- sometimes we have to restart console servers for system maintenance or related reasons.

This help page has a technique for keeping a script running essentially forever, though it does need a paid account to be 100% reliable.

many thanks