openssl sometimes fires Errno::ECONNRESET as an error