Stop the pipeline when it doesn't need to be run.