Recommend turning on the auto save feature in the options, so you don't lose as much progress if it happen again next time.
There's the minor consolation that something that took you two hours to do the first time usually goes much much quicker the second time.
Depending on your project, I also generally recommend taking advantage of project files heavily, so that work on individual data file sources are saved separately (and necessitate saving to update/import to your project).