When you press the 'close window' button in the top left, or use the combo "Cmd+W" to close the window, it prompts you to save. "Cmd-Q" to quit the program does not prompt to save and you just lose all progress since your last save. Would love it if you could add the save prompt for "Cmd-Q" in a future update!
Feature Request