Working on the treatment of deadlocks and automatic restart in the Scheduler.
 Restart was not working anymore due to the presence of the file lock.