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

**Describe the solution you'd like**
Subset of what `reset` command does.
async_block_input->readPrefix();
        while (true)
        
            Block block = async_block_input->read();
            /// Check if server send Log packet
            receiveLogs();
            /// Check if server send Exception packet
            checkPacket();
            if (packet_type && *packet_type == Protocol::Server::Exception)
            
                /*
                 * We're exiting with error, so it makes sense to kill the
                 * input stream without waiting for it to complete.
                 */
                async_block_input->cancel(true);
                return;
            }
            n->sendData(block);
            processed_rows += block.rows();
            if (!block)
                break;
        }
        async_block_input->readSuffix();
    }
    /// Flush all buffers.
    void resetOutput()
    
        block_out_stream.reset();
        logs_out_stream.reset();
        if (pager_cmd)