exit if hook fails