Also catch ECONNRESET on writes.

Signed-off-by: Frank Mertens <frank@cyblogic.de>