Yes, I was bummed by the ending of The Hobbit as well. Thorin I could understand, I guess; but, Kili and Fili as well. I guess I have grown to used to the "heroes" always surviving.
Well, Tolkien lost almost every friend he had during WWI. He was at the Somme and lucky to get out alive. He knew that war means loss.