Bug fix - the child process exit code is not checked.