Simplifying exception handling