run_state_machine more robust to errors
merge most recent changes with my error catching
Merge pull request #10 from MarvinT/dev

run_state_machine more robust to errors