Turning off rigs after 10 mins network failure

is it possible to add a feature like this? Turning off rigs after 10 (or any) mins network failure. I’m suffering this and hope this kind of feature can be integrated in to HiveOS.