Fix issue with the path list removal when gitignores are applied, make sure the progress bar really closes