Clean the partial pipeline at the end of the process. Closes #706