Security fix: handled ECONNRESET