retry on socket errors