protected function closePrevious()
    {
        static $previous = [];

        $id = spl_object_hash($this->getDriver());
        if (isset($previous[$id]) && $previous[$id] !== $this->prepared) {
            $this->realClose($previous[$id]);
        }
        $previous[$id] = $this->prepared;

        return $this;
    }