added a check if the step has caused a pending reboot