fix kill signal and add try catch in the case a Pid does not exist