added error handling if computer is not connected to wireless networks