Leave hook when resume catches error thrown from hook.