Make sure we forget about the store if it fails to open or is closed.

Otherwise if we fail to open a DB, we'll never open it again in the same process.
(same goes for re-open after close)