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