I think you need to feel the emotion and understand that sometimes applying to grad school is like scooping ice cream. Sometimes someone wants coffee and you are strawberry. Don't look at this as failure but something that makes you stronger. Everything happens for a reason and one day you will see why this door was closed.