@enemy is there away to build in a sometype of "watchdog" argument into a command line. My x16s and r on z-enemy crashes sometimes due to overclocking, I want to make sure I can specify the miner to auto-restart when problem is encountered and not to wait until I wake in the morning

Can you please help with that?
I came to this thread with this exact question. I skimmed through all of the pages but did not see a response. My apologies if I missed it.
Is there any sort of watchdog possible? Or a command for the batch file that would work?
I found something posted for the older ccminer. Would this be functional for the latest z-enemy?
:loop
z-enemy -a x16r -o stratumblah:blah -u blah.blah -p x -i 23 -N 800
goto loop