I did something similar in this post. I like it killing router power and using the feedhold so it doesn’t ruin my gcode or project. As long as travel stops and router is not running I can’t see a reason to power off the grbl board.
Not sure how to link it properly.