Remove subtasks before completing a task

Signed-off-by: Rick Copeland <rick@arborian.com>