Jump ship

Meaning: To leave an organisation, job or situation, especially when it appears to be heading for trouble.

Example: Several senior employees jumped ship after the company announced major losses.