bug fix on parallel processes killing