check that store is open before writing to it