Prevents auto-connect from hopping onto random public peers that can leave the wallet stuck at server height 0.
Co-authored-by: Cursor <cursoragent@cursor.com>
Clear stale locks on startup via electrum stop, use correct stop on SIGTERM, and keep the daemon alive with wait so graceful restarts do not leave a lockfile crash loop.