Magnesium desulfurization by-product treatment