fix an issue with the event loop getting stuck after an alt-a exec