kill the program if sampler fails