Made internet reconnect work on main thread