Add support for guard halt_on_fail