Fixing cascading exception handlers