How would you design a system to recover gracefully after a power outage without causing unsafe machine behavior at Automationtechies?