retry upload 3 times before giving up

sometimes d-h upload fails with no reason