Make sure we don't detroy before the pipeline call is completed