Oh no, do not feel like a failure! When things don't work out, it just means its not meant to be...at this moment. I know you feel like you need to get this, I've been there. And then I didn't get it. Chin up, good things will happen to you.
Last time I applied I was having trouble with a co-worker and when I found out I didn't even get past the first part I was devastated. I needed to get out, needed a change but alas it didn't work out. So now I just taking things in stride. You cannot control if you get this right now, its out of your hands at this point. BUT, remember this is never the end.
I haven't even interviewed yet, so I am so scared that I am going to just bomb the interview and I don't want to deal with a third rejection. So I am right on the same page with you. I know it can be difficult but try to stay positive. =)