Add lifetime management for pipeline steps