OPAL-1599: Delete the index when not current task.

The index were not clearing if they were not in the current task...