Click "Sign Out" at the very bottom of the black bar on the left side of the screen. You might have to scroll down to see it.
TurboTax Online saves your file each time you exit.
TurboTax Desktop asks you if you want to save the file when you go to exit.