You can't kill a defunct process because it is a zombie, and zombies cannot be killed
Seriously, to get rid of them, you
have to kill the parent process.
In the future you must make the parent wait for the child to terminate as the other posters correctly pointed out.
jlinkels