Add signal to use when to stop due any error