The File > Quit command closes all Smaart windows and exits the program. This can also be done via the [Alt] + [F4] hot key on Windows or [Cmd] + [Q] hot key on MacOS.
Most of your current settings including window, tab and measurement configurations are stored to the current configuration file so that they can be reloaded the next time you run the program. Any captured data is stored locally, as well, so there is no risk of data loss.