My code freezes when out of network

Hello everyone
I’m new around here.

I have an automated system that works currently works properly, is formed by an arduino Mega and ethernet shield w5100.

When I met cayenne I liked it a lot and decided to implement my code to be able to visualize some of my variables on the web.
Everything worked correctly, the problem comes when the network connection is interrupted for some reason, when this happens the system is blocked, trying to make a new connection, but the rest of the code is frozen and generating a lack of control in the automated system .

If someone can help me, I’m a little lost.

I hope you understand, I’m using a translator

Welcome to the cayenne community @ffiggue . we are working on this to find a solution to overcome the issue.