to avoid or help sb avoid embarrassment
save (sb's) face
She was fired, but she saved face by telling everyone she'd resigned.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition