handle API errors more gracefully than diving off a cliff
Merge pull request #12 from 3van/master

handle API errors more gracefully than diving off a cliff