src/Model/PDO.php
public function closeConnection($name='db_default') {
        foreach ($this->connections as $key => $connection) {
            if($connection['name'] == $name) {
                $this->connections[$key]['lynk'] = null; //closing the connection
                array_splice($this->connections, $key, 1);
                return true;
            }
        }
        return false;
    }
public function closeConnection($name='db_default') {
        foreach ($this->connections as $key => $connection) {
            if($connection['name'] == $name) {
                $this->connections[$key]['lynk'] = null; //closing the connection
                array_splice($this->connections, $key, 1);
                return true;
            }
        }
        return false;
    }
Close connection if is still open.

@param string $name optional parameter if nothing is send it gets
the default connection.

@return bool