SIM800 + local server + failed connection

A timeout timer and the Blynk.disconnect() command should work.

With a reconnection routine and a simple incrementing counter and if() commands, you could probably code something.

Here is an example of the reconnection routine with attempt counter…