TurboTax Online saves your work as you go, so you can exit at any time. When you sign back in, you will be able to pick up where you left off.
The desktop program will ask you if you want to save your work when you close the program. You can click on File on the top menu, then click on Save, to save your work as you go.