Add echo here to know which retry we are on.
Remove try/catches from all but body, to see if it gets rid of those SSL errors.