CLOUD-183 fixed error handling in azure