Acknowledged
CIQQA-4907

Simulator segfaults (EXC_BAD_ACCESS at 0xe8) when monkeydo -t ends a unit-test run, on SDK 9.2.0 and 9.1.0 (macOS)

Environment
- Connect IQ SDK 9.2.0 (2026-06-09-92a1605b2); the same happens on 9.1.0 (2026-03-09-6a872a80b)
- macOS 26.6.1 (25G76), Apple M5
- Device target: fēnix 8 47mm (fenix847mm)

Steps to reproduce
1. Build a unit-test PRG: monkeyc -f monkey.jungle -d fenix847mm -o t.prg -y developer_key --unit-test
2. Start the simulator and wait until it listens on port 1234.
3. Run monkeydo t.prg fenix847mm -t.
4. Repeat steps 2–3 about 10 times.

Expected: monkeydo -t reports the results and the simulator exits cleanly.

Actual: the results are always reported correctly (passed=113, failed=0, errors=0), but on roughly 1 run in 10 the simulator crashes as it shuts down at the end of the run. macOS writes a crash report and may show a "quit unexpectedly" dialog.

Crash signature (same every time)
- EXC_BAD_ACCESS (SIGSEGV), KERN_INVALID_ADDRESS at 0x00000000000000e8
- Crashes on the main thread, inside a run-loop observer callback (__CFRunLoopDoObservers → simulator frames). The top frame is at offset 0xb168a4 in the simulator binary.
- A "Shell handler" thread is present, which suggests the monkeydo connection is being torn down at that moment.
- The crash comes at the end of the monkeydo -t run: about 5.5 s after launch with no delay before monkeydo, and about 10.7 s with a 5 s delay.

Waiting longer before connecting doesn't prevent it, and killing the simulator ourselves doesn't either. Only one monkeydo runs at a time and nothing else touches the simulator.

Impact: test results are unaffected, but automated test runs (we do 88 per full run) leave a lot of crash reports and dialogs behind.

Full crash report.