Don't display server connection failures immediately

This avoid that every time we change network (e.g. mobile to wifi) the
disconnection that results from it will not trigger the display of the
error notification.