Hardware simulator "stop" command is working.
Fix exit in keep-alive loop.