Quit

From the menu File → Quit.

Exit the program and save the configuration.

If the devices are connected you are asked if you want to disconnect them.