So sorry for your loss. I know just how you feel; my 31 year old horse, Paris, passed away from a heart attack back in April. He was my first horse and a dream come true for me.
Think of all the great times you had with him, and try to take comfort in the fact that you gave him a great life, and in the end, you gave him a kind death. Again, my condolences.