Clean up of MemoryStore