On the survival of cool clouds in the circumgalactic medium