ELY-1712 introduced a way to limit reconnect attempts. The UDP implementation attempts to endlessly reconnect and re-send the message. With a TCP connection the connection will be retried, but the message is swallowed and not re-sent after re-connection. UDP should do the same thing.
The reconnect attempts should be checked for both TCP and UDP. Once reached the endpoint should just shutdown and throw an error.