BISERVER-10125 add error handling to decode