use safe_execute when saving tags

To catch unexpected exceptions.