Ensure output and monitoring goroutines complete before finalising job.