Avoid 100% cpu use by replacing "FOR READ" with "FOR INPUT" in thumbprocess
Do not delete files if the user closes the window asking for confirmation!