Move child process log logic into utility, and fix screenshot umodel error case.