I assume you can probably get out of it if you pay off Death the same number of times the City Guard looped at the start. For me that was a lot of times, though, so I didn't have much hope of getting out of it.
Yeah i just gave up on that run....