Flushed out index memory on database close