Don't use Process.waitpid2 when Process.waitpid works just fine.
move error handling logic into it's own method
move the child backtrace dumps into a configurable dir