eal: simplify exit functions