This is what happened on most of the gambler being bust but in your case you got lucky on your final bet. I believe I have this kind of experienced too. I always bet very careful at beginning using small amount and when lose streak hits me hard then I always all in despite I just lose approximately 30% of my bankroll. This is how the typical human behave towards continuous lose. We are being pressured to place huge bets just to recover quickly without thinking how much we are betting.
We only feel the fear right after the all-in bet. I believe this is what happened to you. The chills when you think what will gonna happened to you in case your last bet lose is crazy.
Indeed, you can have control and if everything is going ok or good, than you will not really tilt and accept if you have like a small loss. It is mainly when you have a real bad streak that you want to win it back and start tilting. It still happens to me from time to time but as my bankroll is always low on all the sites, the amount I can loose is easier to accept. I still get mad at myself when it happens though.
I understand, and personally I think that all of us who have played in casinos have experienced that feeling, and sometimes it causes sadness, anger and impotence, because it is true, we entered with all the desire to play and win, but when we saw the opposite results we We can't do anything, maybe luck, or maybe at that moment we don't play well and having such a bad streak can cause a lot of discomfort and those feelings, but when having a bad streak the best thing to do is rest, not insist because it is worse, it is not recommended at all, because much more would be lost, that is most likely.