Cross-platform kill command. Supports recusive/tree-kill in a synchronous manner.
Synchronous tree-kill