Handle network error.