Exit gracefully from 'quit' command