I can understand. I have been there, just salivating to work at my dream company, only to get a reject letter. I can say it stung much because I too hated the job I was in and REALLY wanted out from there. For me I wanted out terribly and to have this awesome firework just fizzle out was a huge sting in the butt. It can bring your confidence down, sure. But there are other opportunities that may be better suited. I found that when I needed to get out of a toxic work environment that after a number of rejections from companies I really wanted to work for I ended up getting a much better job that had me working as the secretary to the president of a company than the job with a major credit card company as a sales persons secretary which I would have had several sales people to support with travel plans, expense reports, shipping materials, etc, etc. I worked for 1 guy (the owner of the dealership)that allowed me to grow the position, to clean up areas that were neglected and was treated pretty well. The benefits were not there (401K, long term disability, health/dental/life) as this was a part time position, but I made just as much part time there than I would have full time at the credit card company, so part time was excellent. I worked from 9am-3pm Monday thru Thursday and Fridays off. Then I started to come in every other Friday from 9am-12pm. He also paid my sick time, vacation and holidays! Plus I had ONE boss! Believe it or not, this was at a multi line car dealership. Very professional outfit. The health/dental my husband receives through his employer so it was not a big deal for me.
Anyhow, you never know where your dream job will turn out to be. I never knew when I started at the car dealer that it was going to be my dream job, but it was. It was THE BEST job I had, the people, the duties, I loved it all. If it was full time, I still would have been working there, driving the 30 miles one way! But we moved and the part time pay was not going to cover wear, tear and gas.
Just keep going! Never give up and never underestimate the potential of working somewhere where you never thought it could be your dream job. You just may never know!

Good luck on your interview. Please let us know how it goes, OK?