I have two cats now, so I feel your pain. I've had three cats in the past who died, excluding the two now.
One died or ran away in the earthquake that happened in the early 90s in L.A.
Second one, I was young... and I don't even know why, but looking back at the symptoms... i'd say improper veterinary and nutritional care.
Third one, first kitten I got as a young adult but the kitten was too small. I was re-assured everything was alright. Once again, I was duped. The food being given to her was all wrong, she was taken from her mother too young, weak immunity, no veterinary care because their vet was a complete idiot who came once in a blue moon. So she died from what I later learned is described as fading kitten syndrome. I was frickin' devastated and so damn angry at her death. I had only for a week, so trust me... I feel your pain. But it's apart of life, I know my two cats now will meet the same fate as my three other cats... just as I will. But what you have to be proud of is that the fact that your cat lived for roughly 17 years which is above average to my knowledge.
R.I.P man, hope you feel better.