Added exception checks for unable to connect to server and invalid xml returned