Fix high cpu usage due to empty sleeps.
Finally proper child PIDs detection.

No more dangling processes after a timeout has kicked in; all child processes are recursively terminated.