fix PhEDEx uploader closing block