[cli/engine/commands/shell] treat broken pipes like EOFError's