emulator: ensure it doesn't hang if program crashes in cosim mode
emulator: ensure it doesn't hang if program crashes in cosim mode

Follow on to previous change

[ci skip]

FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,FulcronZ/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor