There seems to be a major bug where exiting a level to the main menu doesn't save your score. It does save if you exit completely.