im writing a userimport tool using the gwadmin api

i get everything working -> add, delete, rename even
connecting a gw account to a moved nds account (dn changed)

but i´ve still a problem

if i rename the accountname and rename the same account a 2nd time without
ending my tool -> ill get the error D70E (Duplicate entry in database)

so renaming an account only succeeds only once
until i restart my tool

is there anything else i have to do expect
calling user.commit() after the change ?

something like gwsystem->disconnect() ? cause something like that must
happend if i close my tool -> i cant find anything in the docs