don't call event handlers on error