Intranet only - WiFi disconnects - how to stop?

Would it be possible to handle wifi disconnects with system event hooks?
Letting the particle system thread handle it in the background doesn’t seem to work.

With an event hook I could:

  • Completely destroy the TCP server and clients and recreate them when wifi comes back
  • Possibly prevent the system thread from blocking the whole system. (Why is this even the case, damn).

Some more info here: WiFi channel switching stops WiFi connectivity and is only recoverable by reboot (BUG)