While I don't mind reading code, there is none here.

However the most common gaffe is to run the script directly. If I need it to keep running I don't do that. I write a batch file that runs the script and then loops when it exits to run again.

NOT A FIX. WORKAROUND.