Bug? Windows: v1.3.4554.60 broke minimize & close to system tray

Updated to the latest version (1.3.4554.60), and it seems that on Windows11 it broke the minimize and close to systemtray.
When minimizing, it only stays in taskbar.

when closing, it terminates the program altogether.

I noticed this after the build was already completed so it will need to be put into a new release. It appears the new version of Electron is blocking window.close() from running inside the app sandbox. This is used when the system window frame is hidden which is always done on Windows. Right clicking and selecting close from the taskbar will correctly close the window to the tray without exiting.

The cause of this is documented at electron/electron#50040. The Electron version will be downgraded to v39.6.0 in the next release to correct the issue.