Added slightly better error handling to the CloudStackClient.