prevent hooks from being called if we are bailing