Stop continuous connection

To save battery, stop connection with server after getting the location
data.