fail method instead of direct state machine failed event to ignore other record's errors.
Merge pull request #14 from dmitrydims/rails4

Cherry-picked 42869e88e45e3ea6c3e3a07678982f6e835ff274