Rescue the exception of run_failure_hooks method