an class="n">mode</span><span class="o">=</span><span class="n">data</span><span class="p">)</span>
        <span class="k">elif</span> <span class="n">cmd</span> <span class="o">==</span> <span class="s2">&quot;close&quot;</span><span class="p">:</span>
            <span class="n">env</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
            <span class="n">remote</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
            <span clas