I think this could be handled more gracefully. When the application attempts to close it will also close to system tray instead of killing itself. <img width="1808" height="1004" alt="Image" src="https://github.com/user-attachments/assets/9187dae9-9f35-4a65-b08e-6bb5c3ea877b" />