Sorry to hear it didn't happen for you Keyseeker, all you can do is say "thank you for the opportunity", take everything you have learnt and move on.
It's not the end of the world, although it probably feels like it at the moment. I personally know a couple pilots who have bounced back from this kind of thing in the past. Try to analyse where it went wrong and come up with a new plan, Redsnail's advice is spot on. Everybody learns at different rates, it doesn't make you a bad pilot.