Retry on socket errors