StateMachine applies commands on dedicated thread