call close() in UniqueIDGenerator destructor.
call close() in UniqueIDGenerator destructor.

when user destoys a UniqueIDGenerator and forgot to call its close()
function, the "_newid.xml" file would not be flushed, to avoid this
problem, the close() function would always be called in destructor.

pombredanne/izenelib,pombredanne/izenelib,izenecloud/izenelib,izenecloud/izenelib,izenecloud/izenelib,izenecloud/izenelib,pombredanne/izenelib,pombredanne/izenelib