Fix possible ECONNRESET