Adding os.wait() in class Task kill() function.

This stops the proliferation of zombie processes as
tasks get killed.