Lost my second job

I spent ten years with that company. TEN YEARS and all I got was a message in my inbox saying “We regret to inform your your contract has been terminated.” TEN YEARS. Everyone else was fired too, because we’re worth nothing to them. TEN YEARS of work. I can’t get over it. I’m so fucking angry and depressed.