kill process and avoid creating zombies