Retry java downloads if they are too slow