Bug Fix: Improper exit do not ensure right behavior for deleted tasks