On macOS window close should just hide the window instead of quiting program. This is how it’s usually done in macOS. Now if you press close button AudioRelay shutting down and exit. So only way to hide the window is to use minimise button but that’s made for a different purpose. So please implement a proper way to hide a window.