Force progressbar thread closure