I know how you feel. I just went through the same thing a few months ago with my last job. We had four rounds of lay offs. I made it to the final then got laid off. I had the same feelings you described to the end.