Add Maintained State In StateMachine Example

One of the main reasons to have the state machine approach is to
keep state after failure