a check to make sure there is only one endPipeline.