I am the worst when it comes to setbacks. I tend to have a setback and feel like I can't keep going, and I have to give up.
I have found that taking a day or two for myself, re-focusing and then coming back to what I was doing before the setback happened helps a great deal. It is easy to give up, but if you can find a way to deal with it without giving up, that is always the best way.