Friends who abandon you in hard times, what to do?

Friends who abandon you in hard times, what to do?