add some error handling around bad data returned during polling