Handle the connection failure exception in weather segment to avoid glitching