Necropsies can be expensive. If you've got the stomach for it, you can cut him open after he's dead and take a look at what the intestines look like inside. Sometimes it's very obvious what went wrong, but often there is no clue. But if you are curious and not squeamish, you may learn something.