To be clear, kidneys need steady and high blood pressure to continue functioning. So let's say you have a heart attack, then your able to recover circulation but your brain was hypoxic and you're later shown to be brain dead. In that case there's also a high chance to be in some state of kidney failure and needing dialysis.