SCORE-124. Make StatisticsGatheringThread empty the queue on shutdown.

issue: https://jira.kiji.org/browse/SCORE-124
review: https://review.kiji.org/r/1226