Ensure output and monitoring goroutines complete before finalising job.
Merge pull request #34 from theojulienne/bugfix/missing-output

Ensure output and monitoring goroutines complete before finalising job.