Make logout (:exit) possible from all modes.

- Fixes KIR-55.