Adding a try/catch around os.kill and more safely waiting for children to exit. Addresses #12