Handle network connection status