Wrap the perform_job in a pipeline context

Wrap the perform_job try/except in a pipeline context so the pipeline connection is properly refrshed after the work is done