BUGFIX: nc_task_destroy would always try to delete the task.