BUG Fix Task.unload_recursive()

The previous "improvement" had a bug which made it no improvement at all.