Added quick bool checks for KeyValueStore Close()