How to Deal with My Husband’s Mid-Life Crisis?

He wanted to divorce. We lived in a sexless marriage. He would come home late from work and just ignore me most of the time.