Added on_fail
Merge pull request #2 from hisaichi5518/feature/add-on_fail

Added on_fail