[cli/engine/commands/shell] make prompt I/O errors break the main loop