Connection Handler improvements. Should fix problems connection/reconnecting to LAN.