Added a fix for situations when a Wi-Fi network gets disconnected, so the MacPI reconnects by himself again.