leveldb: NIL'ing some pointers after the DB get closed

Issue #51.