Near-death brain activity may speed up heart failure