disconnect socket when new loc is searched