I know you must feel terrible right now, but you did not fail your family or your boss or your community or the deep self that lives inside of you that is more than your current perspective. Maybe in the short-term you have an outcome which is temporarily displeasing to some people, including yourself. However, consider a wider perspective...
Consider... To be a successful family member, you simply need to be a loving and supportive present entity in communication with your family members. That is not at all dependent on what job you have, or even if you have a job. It simply depends on your presence and your willingness. Perhaps you have frustrated your boss in the short-term, but in the long term your boss' happiness and success has little to do with you as an individual. It is my experience with former employers that they are generally happy to see you happy, and they are generally sympathetic if they see you unhappy. We had a saying at my old job, that the workplace will continue to turn with or without us. Others' lives go on regardless of what we do or do not do. It is just a role you filled. And to be valuable in your community, again, it is simply that you need to be present and to contribute. Certainly one way you can contribute is financially and at your job, but there are many other ways to contribute. Simply staying aware of issues in your community, and being supportive of the other community members is plenty. Many people who have jobs are not particularly valuable to their communities because they do not care about contribution. You are not without value in any of those contexts.
As for your self... You are very focused on feeling like a failure. I think that you have done wonderfully to escape the philosophy of the religion that you were raised in, but I think that you are also harboring much of the heavy superego that is a facet of that mindset. Losing a job is not tantamount to being a failure. It simply means that you were not a good fit in that position - and sometimes it doesn't even mean that. Sometimes it is the combination of a number of factors that have little to do with you personally. Regardless, even if it was about you personally, it still does not have anything to do with your worth. Your greatest gift in life, and your meaning to the world, is not manifested in how well you fit to a single company's expectations for a certain position, no matter how much your superego promoted the idea that you
needed to succeed at that job. It is an illusion. You are alive, you are whole, you are still as worthwhile as you were yesterday.
I hope I'm not sounding like I'm lecturing you, because I actually was fired from a job myself less then a month ago, and I know how crushing it feels. But I think that for me having been fired from that job, while certainly a blow to my sense of pride, became a long-term gain. It let me see some misunderstandings I had about that field, and it made me realize how ill-suited I was to working in that certain position. It did not lend itself to my strengths. We all deserve a job where our natural strengths can shine through and where we feel that we are being useful. There are millions of positions in this world, so varied and so unique, that there is a niche for you. And there is opportunity to create a niche for yourself even if it doesn't already perfectly exist.
Please, please, please, do not let this temporary event destroy the nascent feelings of self-worth you were beginning to embrace. You, like all of us, are just a growing being grappling with the realities of a world that is not tailored to make things easy for us. This is not a complete loss in your life. You gained a lot of knowledge at this job. You learned about the tools that you worked with, the nature of the service that you were providing, the kind of coworkers you are likely to have, the information that you had to communicate, and the day-to-day successes and frustrations of the job. You now know how well you can adapt to and whether you enjoy these parameters or not, and which ones you appreciated and would like to have again, and which ones you would prefer to boot out of your life forever. The way you feel about it can illuminate your future path. This is a temporary loss, but also it has just freed up an incredible amount of time and energy in your life while simultaneously allowing you to keep the new knowledge that can light your way. You are no longer bound by the responsibilities of this job. What can make you more happy instead? What opportunities can you see now, armed with your new understanding, that you wouldn't even be looking for if you were still pushing yourself to conform to that ill-fitting job?
You
already are and always will be valuable to the world precisely because you
care about being valuable to the world. That is not even something you have to work on, MQ. You're there. All you have to do now is to realize that you are worth being valuable to yourself.