If the input path list is bad (e.g. a folder path instead of a path to a text file) it will get stuck and loop infinitely
If the input path list is bad (e.g. a folder path instead of a path to a text file) it will get stuck and loop infinitely