added some error handling in openrtb