logic to detect Internet unavailability and stop further validations