It sounds to me that he didn’t cope with losing his job very well which was why he pushed you away. However, there is a chance that time and space has made him rethink things so, as Suzi says, maybe it’s worth keeping in touch with him as friends - and seeing how things go?