php api throws exception on network failure
Merge pull request #68 from ideawu/master

php api throws exception on network failure