disestablish connection on going down, and also change paths on demand