Refactored the way we can stop the pipeline by introducing a AbortChain
method.