Fix data races in test suite

This fixes the data races in the test suite, when ran with `go test
-race`.

The new behaviour is the same and fzz works the same. The fix also
removed the wrong behaviour of `return`ing to early and not resetting
the printer when a command failes with an error.