The sentries overwhelmed you.
Enemy attack rule: a sentry deals 8 damage every 1.2 seconds only when you are within 5 tiles and it has an unobstructed line of sight. Walls block enemy sight, sprites, and your shots. Defeat every sentry to unlock the exit.