Cancels all tracked tasks.
This is typically used when the plugin is being disabled to ensure no tasks continue to run.