Use script. instead of implied text mode.
Remove works associated with tasks when removing a task.