pub async fn spawn_server( cmd: &mut Command, ) -> Result<(JoinHandle<Result<ExitStatus>>, Sender<()>)>