cleaning up KVStoreInMemory