Address items 1 and 2 of #8225:
- Ensure the GUI closes when the “Minimize on close” window option is disabled, and the “Minimize to the tray instead of the taskbar” window option is enabled
- Ensure the GUI minimizes to the taskbar when the “Minimize on close” window option is enabled, and the “Minimize to the tray instead of the taskbar” window option is disabled