MachineState: while updating status take error status in action