How to use DataStore2 - Data Store caching and data loss prevention

Edit so I found the source of the data loss:

I found that if players don’t close the current game window, and click play on the same game (causing the current game window to close); all the data they gained on that current game instance will be lost. Has anyone else experienced this? If so, what was the solution?