See recommendation about how to rescue registry_setvaldata exceptions above