Clean up old tokens when switching tags in the token manager.