in a position to successfully carry on despite having been in a difficult situation; to get out of a dangerous circumstance without loss or injury and often with a gain. This possibly refers to the way a cat will land on its feet after falling from some height, no matter what position it fell from.