Likely a bug, cmd.Wait() should not be called before all I/O is completed on stderr: https://github.com/fnproject/hotwrap/blob/master/hotwrap.go#L78 (See: https://golang.org/pkg/os/exec/#Cmd.StderrPipe)