session: Only exit from dialog when not in session process