adding a timer for the master restart, goal is to prevent restart in the last hour