retry on socket errors.