cancel all tasks when shutting down

That should reduce the number of rogue threads. Plus, it is safe since we've already disabled plugins, and saved worlds, so there should be any tasks left.