Correct status and stdout/stderr printing.