Hang on to it

I keep getting this advice: if things are not working right, hang on to it. Don’t give away quickly. Do not be a quitter.

When you have lost soul on something: relationship, partnership or professional engagement. How can you Hang on to it?

Our time is limited. Does hanging on or holding on to something for a better future makes any sense?