Fix error handling for offline support.

(untested. glasser told me what to type.)