get out while the getting's good

get out while the getting is good

To depart, escape, or extricate oneself from some place or situation before conditions worsen or it becomes impossible, too problematic, or too dangerous to do so. With stock prices in the company threatening to plummet, we decided to get out while the getting is good. We heard that they'll be sealing the border soon, so we're getting out while the getting's good.
See also: get, good, out, while
Farlex Dictionary of Idioms. © 2015 Farlex, Inc, all rights reserved.

get (out) while the gettin(g)’s good

and get (out) while the goin’s good
in. to leave while it is still safe or possible to do so. I can tell that it’s time for me to get while the gettin’s good. I think we should go. Let’s get while the going’s good.
See also: get, good, out, while
McGraw-Hill's Dictionary of American Slang and Colloquial Expressions Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.