public void ResetMachine() { Console.WriteLine($"[{_name}] RESET MACHINE"); try { _stateFactory.SetNextState(_stateFactory.GetStartingState()); } catch (Exception e) { _stateFactory.SetNextState(_stateFactory.GetErrorState(e)); } }