Save one`s neck/skin

To save oneself from danger or trouble.

The man left the scene of the fire quickly in order to save his neck.