did you think people wouldn't actually check your link? Wikipedia is nearly word for word exactly the same story.
"...in 1865, nearly 20 years after his breakthrough, he was committed to the Landesirrenanstalt Döbling (provincial lunatic asylum). He died there of septic shock only 14 days later, possibly as the result of being severely beaten by guards."