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

**Describe the solution you'd like**
Subset of what `reset` command does.
pager_cmd->in.close();
            pager_cmd->wait();
        }
        pager_cmd = nullptr;
        if (out_file_buf)
        
            out_file_buf->next();
            out_file_buf.reset();
        }
        if (out_logs_buf)
        
            out_logs_buf->next();
            out_logs_buf.reset();
        }
        std_out.next();
    }
    /// Receives and processes packets coming from server.
    /// Also checks if query execution should be cancelled.
    void receiveResult()
    
        InterruptListener interrupt_listener;
        bool cancelled = false;
        // TODO: get the pol from commandline.
        const auto receive_timeout = n_parameters.timeouts.receive_timeout;
        constexpr size_t default_pol = 1000000; /// in microseconds
        constexpr size_t  = 5000; /// in microseconds
        const size_t pol
            = std::max(, std::min<size_t>(receive_timeout.totalMicroseconds(), default_pol));
        while (true)