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

**Describe the solution you'd like**
Subset of what `reset` command does.
// Report error.
            if (have_error)
            
                reportQueryError();
            }
            // Stop processing queries if needed.
            )
            
                if (is_interactive)
                
                    break;
                }
                else
                
                    return false;
                }
            }
            this_query_begin = this_query_end;
        }
        return true;
    }
    // Prints changed settings to stderr. Useful for debugging fuzzing failures.
    void printChangedSettings() const
    
        const auto & changes = context.getSettingsRef().changes();
        if (!changes.empty())
        
            fmt::print(stderr, "Changed settings: ");
            for (size_t i = 0; i < changes.size(); ++i)