When WIFI is lost, anyways to keep the device running instead of blinking green?

I been looking thru the document and forum, I am thinking of using SEMI_AUTOMATIC. But I am confuse on how to release the blocking form the user code once the internet is lost, it just keep blinking green.

Seem like back in '14, Functioning with wifi and internet drops, there were similar question as mine.

Does anyone have some sample code to keep the user code running during a lost of network and reconnect when the network is available?