Makes sure store access is closed