Handle broken pipes in command.js, 0.21.4