deal with network error