log stdout/stderr when process returns nonzero