I had something very similar happen several years ago. Bought a house and pushed out of a job around the same time. When everything settled months later I had a different job, sold the house without too bad a hit and had a really good career after that. Hang in there. Do not be discouraged.