**Use case**
Some program left garbage in terminal.

**Describe the solution you'd like**
Subset of what `reset` command does.
/// sync in the n protocol.
                    nect and allow to enter the next query.
                    connect();
                }
            }
            while (true);
            if (isNewYearMode())
                std::cout << "Happy new year." << st;
            else if (isChineseNewYearMode(local_tz))
                std::cout << "Happy Chinese new year. 春节快乐!" << st;
            else
                std::cout << "Bye." << st;
            return 0;
        }
        else
        
            auto query_id = config().getString("query_id", "");
            if (!query_id.empty())
                context.setCurrentQueryId(query_id);
            nonInteractive();
            // If exception code isn't zero, we should return non-zero return
            // code anyway.
            const auto * exc_exception
                ? server_exception.get() : client_exception.get();
            if (exception)
            
                return exception->code() != 0 ? exception->code() : -1;
            }
            if (have_error)