error handling hardening for dynect