Improve handling of exceptions during response validation