Fix shutdown and restart processus
Add option to control parallism in FileMonitor