Add network check before updating