Thank you for the fix. I just tested it, I indeed got the message "you won't survive" asking if I am sure I want to proceed.
I had forgotten to disable auto recovery script for the test, but even with it I still failed and it still auto halted... anyways, this is the results I got
As you can see, it has successfully stopped when I failed after spending 2 adventures only.You are currently in room 0 and it will take you 4 turns to clear the maze.
Restoring HP! Currently at 114 of 151 HP, 149 of 149 MP, current meat: 34000 ... Target HP = 151.
Casting Shake It Off 1 times...
You gain 37 hit points
Shake It Off was successfully cast.
Entering the Hedge Maze...
 The Hedge Maze (Room 1)
 The Hedge Maze (Room 4)
Encounter: Pooling Your Resources
You lose 136 hit points
You lose 120 hit points
Can't really test this for all 15 possible results since mafia log doesn't seem to indicate which of those I got. But it seems to work.
BTW, can someone mark this bug as fixed? its still marked as open.