A job loss can take a huge hit to his ego and yes, it could also be classified as part of his identity, which in turn becomes a loss for him and create depression. The emotional affair "partner" was she on the job or in one of the cities that he traveled to? Could be he is also mourning the loss of actually seeing her in person and chatting w/her.
If you could provide a bit more "generic" info about your lives it would be helpful.
Also, as a new member to the Board, I am posting the link to the Board policies.
Sit quietly, the answers will reveal themselves when you least expect them to. The past is gone, the present is a gift and you need to focus on today, allow the future to reveal itself when it is ready.