Better deletion of tasks
Better error management