Fix download count output from stats job
Print error logs when stats job fails