Avoid test pollution from randomized soldier test

Ensure that the soldier exits before trying to examine the output
streams.

Signed-off-by: Johannes Petzold <jpetzold@pivotal.io>