Many a captain has abandoned ship in anticipation of it sinking, only to see it continue chugging into the sunset whilst he is stranded on his life boat.
Give up on your ship ONLY when its actually sinking underwater.
When the ship’s deck is below the level of the life raft.
Step UP off your boat onto the life raft.
If there’s still a chance, hang in there.