Most persons feel bad when they are rejected, sacked or lost something. I know how it feels but try to learn from what life has to teach you because there is always a lesson in every situation.
If you don't learn from the past mistakes, there is a high possibility that you will repeat the same mistake. Life is a wonderful teacher; learn from her so you can be a better person.
Always see the bright side of every bad situation and at the end, you will be glad you pass through it.