Frieza cutting himself in half was such a perfect ending for his character.
His own rage and pride led him here. He was supposed to be the strongest in the universe, but once he started losing to the one thing he feared most, he completely fell apart.
Even betraying Goku after being spared made sense. Frieza only knew victory, so he had no idea how to accept defeat.