Changed _kill pid method to use subprocess