Handle network error and add ripple effect.