How to skip pre-exit step?

I have some validations on the post-checkout hook that exit with a non-zero code in case of issues. This makes the pre-exit hook unnecessary for me as none of the commands will be run. What is the best way to stop execution after the post-checkout validation errors?