So the 20 sec restart equals the 20 sec dev fee

Way to calculate, go for it

Even if u go with restarting script, u dont win anything, at the best u may stay level and only thing u achieve is not mining for developer. How u call people who do that?
So, idea for
added 10sec delay at start that u may fill with greetings to "hackers" and countdown, and option to remove that by placing devfee time from 15 to 5 minutes. I'd take that other option, but then ppl come and complain that they pay 10x devfee an hour on unstable rig.
And may u add long waited -devfee option to increase the value.