Yeah, the game is about the futility of going up against an immortal enemy. And the game does intentionally close when you lose all your health.