Though there's no assurance that you can stop repeating things to happen but as long as you know how to handle things, you'll be able to stop the moment you feel that you needed to call for the day, unlike with previous experienced instead of quitting you'll push your way and keep playing then lose more, with better understanding of the situation you'll be able to move forward and skip that aggression that you feel inside you, and not to allow emotions to dominate and not to commit more mistakes.
Following what you say all of us as Humans tend to fall into the same error unlike Animals , we Are always Going to generate that type of situation , of course these things one as a person says no but they do Happen , what fails is in the discipline and having Discipline everything Changes because it is already Something that goes to the level of making the difference and in casinos we Lose money , so we Should lose less Money.
We can lessen our losses if we managed to practice what we plan before we engaged into it, but like you said human errors happened whenever we failed to follow our own practices, but if we can limit our sessions and the amount that we are using is decent enough of our spare then it's not going to be hard if we wanted to stop and move forward and forget whatever the amount that we've loss.