Add basic PipelineWorker.cleanup method implementation