Added 2nd check for connectivity prior to calling the network down