So, the way I'm seeing things, the celestial pig could be used as an exchange for Ace and then Logan offs him. Or he does so immediately and takes kizaru hostage instead.
That wasn't revealed until the actual execution, so it would still work. Especially when you consider how much the pigs are valued, not their individual value, but as a collective symbol.