Reset progress bar when task finished.