add retry management when chunk download fails