handle ECONNRESET upon early stdin end

related to https://github.com/stream-utils/duplex-child-process/pull/4
Merge pull request #5 from jeromew/patch-3

handle ECONNRESET upon early stdin end