and please watchdog option that would help allot.
use nnCron, Create a 2 macro :
1 Kills miner process every 30 minutes .
2 Check whether the miner started every minute and if not then runs it .
In the end, it turns out that every 30 minutes a miner will be restarted .