updated to catch request errors (ex. server down)
Merge pull request #9 from nytsua/master

updated to watch for request errors (ex. server down)