Edited disconnect to work offline for network.