If bonds with a carrying value of $280,000 are retired

If bonds with a carrying value of $280,000 are retired early at a cost of $330,000, is a gain or loss recorded by the issuer retiring the bonds? How does the issuer record the retirement?