Catch exception in examples/halide