Sorry for your loss. My dad died a few years back and he was on a breathing machine for about two weeks and the doctors decided to take him off also and he may have lived about 30 minutes after too. It's hard to watch as things get worse but it's better to let them go if there's a lot of pain and no hope. I'm glad my dad doesn't suffer any more.
Again I'm sorry for your loss