fail gracefully in the case of a network error