Gracefully handle invalid server responses
Merge pull request #46 from hermanschaaf/graceful-error-handling

Gracefully handle invalid server responses