Simplify exception handling.