When using no in-tempfile, it may happen that the command (e.g. 'head -2') close the input stream before it is
completely read. This may result in a `EPIPE` or `ECONNRESET` but is not an actual error, since the output is
still correct.