Improved error handling of oonibclient

It's counterpart is in https://github.com/TheTorProject/ooni-backend/pull/52