undo need check hacks for modbus, not necessary
added an exit for modbus when clockwork restarts