Save face

To preserve one`s good reputation or dignity when something has happened to hurt it.

Our boss is responsible for many problems in our company. He wants to quit before he is fired so that he can save face.