Bugfix

Improed error handling after http.get request. Fix #4