Handle network errors appropriately