Ethercard library stuck while ISP forces IP disconnection

Hi everybody...

I am using an enc28j60 breakout board together with the ethercard library, latest issue (21. Jan. 2015). I am sending data from an electricity counter to a mysql database each couple of seconds. This works (almost) perfectly...

But in the night at about 4-o-clock when the ISP forces the disconnection and renews the IP address the browseURL stucks and i have to restart the program manually. I think it sends the data with the current address while the response does not reach the new address.

Does anybody of you know how and where i could catch a point for a timeout exit? There is no need for resending the data because they are stored on the server.

I thank you in advance reading my request an thinking about a helpful answer!

best regards