[fix] pass pid instead of child process instance to tree-kill

It looks like I messed up in my previous PR... ooops. First argument to `kill` should be a `pid` a not a reference to the child process itself.