make sure subprocess is ended for cloudbees CI