Throw an exception if checking server's device counters returns an error.
Merge pull request #2659 from learningequality/throw_exception_for_counter_error

Throw an exception if checking server's device counters returns an error.