Change script for clean to remove cfg.
Change list to CopyOnWriteArrayList