network disconnect almost working