Funny scenario but that is possible, and if that happens to me, I'll definitely stop playing, I'll choose to go home being a loser instead of losing everything to the point that I am not able to go home.
Well people won't learn their lesson unless they experience it. So for me, I won't wait that moment like being empty pocket leaving the casino as I'll feel like a beggar. Though it's hard to resist to stop, I'll help myself to recover and just stop. Maybe I'll be just back when I have spare money or when I needed to refresh my mind.