mapstore flush on shutdown