add fetch state error handling (bug 1015266)
Merge pull request #48 from muffinresearch/add-fetch-error-handling

add fetch state error handling (bug 1015266)