Aw, sorry to hear this
One of my classmates and friends ended up passing, but only barely, and I know this is crazy to say, but I don't think it's a bad thing that you failed it. Yeah, you failed, but now you have the chance to study again, learn from your mistakes, and retake it and really kick butt.
If you had passed, you would be stuck with that score, which probably doesn't represent how prepared you really were. You can ALWAYS make an excuse about why you were having a bad day the first time you took it if you can just kill it the 2nd time around. Hang in there! I know it is a blow, but I really think that if you're not going to do well the first time you take it, you're probably better off having failed so that at least you're getting another chance to prove yourself.