added some additional error handling around the SNDS api calls