cmd.Process.Wait may refer cmd.Process == nil