Simplify exit logic.