Add fsm.Error class to signal error state
Allow resetting states
Merge pull request #182 from ufo-kit/fix-179

Fix issue 179