Oh I see what's going on. Yeah, this is a bit hacky. It feels like we're not actually in control of the process. I wonder if it would be better to spawn this as a subprocess instead of using exec. It feels more like that's what we want to do anyway. Then I think when appium is killed, it will be killed as well.