Do not go back to main mode after exiting query.

References #35.