I've moved the on exit event trigger to terminate the backend to RunEvent::Exit (from WindowEvent::Destroyed).
The old termination on app exit doesn't work as expected, and the backend process sticks around, orphaned, which is not only a resource leak but also hogs the server port so the backend isn't successful in starting up when opening the app again. This trigger is almost straight copy-pasted and I can confirm locally it works as expected.
I've moved the on exit event trigger to terminate the backend to
RunEvent::Exit
(fromWindowEvent::Destroyed
).The old termination on app exit doesn't work as expected, and the backend process sticks around, orphaned, which is not only a resource leak but also hogs the server port so the backend isn't successful in starting up when opening the app again. This trigger is almost straight copy-pasted and I can confirm locally it works as expected.