How was your job almost fixed - just thru him? Not thru anyone else in the company? It sounds like he used you to get this better job. That happened to me so many times as a contractor - my superior would get a promotion due to my hard work then they would get rid of me, very harshly sometimes. Obviously you still have very marketable skills - im not sure how to explain what happened to your next boss, except to say the job offer fell thru.