Use spawn instead of exec so the process ends when appium does