Added error handling in the event that there are errors picking up the pipeline status.