A trick used to circulate for this: open the shop, hold down the Tab key, press F5, and keep holding for a couple of minutes. The reload interrupts the closing routine and leaves the store accessible.
Be aware of what you are doing, though. This is an exploit rather than a feature, so it is patched or ignored depending on the client version, and deliberately breaking the game's rules can put an account at risk. If something you want is only available while a shop is open, waiting for it to reopen is the reliable answer.