infrastructure: keep a reference to execResult instead of only exit code to possibly print the stderr stream contents