Before he founded his business, he lost his job — and things got dire.