A couple of fixes to make clang happy.
Avoid throwing an exception in the Fail event. Remove unused methods from the state machine.