Feature request: Run script before system reboot

That’s strange, unless your devices are placed in area where earthquakes are common, affected with other ambient vibrations or in rooms with high moisture, but then I will be generally worried about devices health, not just connections.