It happens less often with the offline version of the game because it saves data faster.
In both versions, it is recommended to keep the game on for a couple of seconds (at the menu screen) after the “save and quit” button is pressed. Also, please don’t close the game right at the beginning of a new day when autosave happens.
Should be fixed in the improved version of the engine I am working on now.