Wow, I'm so sorry to hear this. You gave him a good life, and that's all that matters. You obviously care for your pet.
I read something once, that might help if you end up having to put him to sleep. You take the pain upon yourself, by putting them to sleep, rather than watching them suffer...