Catch ECONNRESET, EAGAIN, EWOULDBLOCK in pipe read