run-command: eliminate calls to error handling functions in child