retry job result download on socket and ssl errors