Added a failure completion handler to the stats service