Errors are now printed from a function. Uncommented kill in child().