If my memory serves me correctly, it is called simply the closing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
It's called the valediction. The opening usually "Dear X," is called the salutation.