It's important to know when to just stop and give up.