Changed hook killing condition.