delete file try catch dealt with in the same method.
indexlist.txt is now added to their own respective folders but is
ignored when indexing in the directory.
Removed shutdown hook. Instead, shutdown code works when infinite loop
breaks.