Deliberately throwing an exception if hook executions returns a none-0 exit code.