We all fail sometimes in our life, our dreams and expectations when realized are not what we wanted or hoped for.
So you screwed up, I did many times, but I am still positive and happy. No need to get depressed, down or whatever, last thing I want is to post your corpse here and go to yer funeral in Sofia because you hanged/jumped/shot yerself.
Pieman, you need to get your affairs in order, and maybe look abroad for more career opportunities. There are more countries the Bulgaria, and as a EU citizen, no need to fill in loads of paperwork.
But for now, relax, take some time off, rethink your options and start working on a new start. It helped for me.
Good luck and if you want to talk, you know where to find me...