Please make sure that all resources are closed before disconnecting the client. Disconnecting the client before closing all opened handles may cause problems and not all changes are stored.