cmd.Wait must not be called here

because it errors out — exec: Wait was already called