Put this after pipeline.Dispose