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

**Describe the solution you'd like**
Subset of what `reset` command does.
// default case w/o test hint, doesn't need additional
                    // diagnostics.
                    error_malse;
                }
            }
            else
            
                if (test_hint.clientError())
                
                    fmt::print(stderr,
                        "The query succeeded but the client error '}' was expected.\n",
                        test_hint.clientError());
                    error_malse;
                }
                if (test_hint.serverError())
                
                    fmt::print(stderr,
                        "The query succeeded but the server error '}' was expected.\n",
                        test_hint.serverError());
                    error_malse;
                }
            }
            // If the error is expected, force reconnect and ignore it.
            if (have_error && error_matches_hint)
            
                client_exception.reset();
                server_exception.reset();
                have_error = false;
                n->forceConnected(n_parameters.timeouts);
            }