Close #261, only run retry upload after chunks is done