The waitForServer function has no retry limit - if Nitro crashes, Electron hangs forever waiting for a server that will never start. Additionally, there are no SIGTERM/SIGINT handlers for clean shutdown.
File: electron/main.cjs
Fix:
- Add maxRetries limit to waitForServer
- Add SIGTERM/SIGINT handlers for clean process shutdown