Correctly pass child process' exit status to sys.exit(). Closes GH-45