Add explicit exit flag