public function disconnect() {

        if(!$this->isConnected())
            return false;

        try {
            $this->connection->close();
        } catch (Exception $e){
            return false;
        }

        return true;
    }