I left teaching in pretty much the same way, although I didn't swear at the pupils. The problem was two year nine classes, majority boys, and I had been telling SMT for six months that I was struggling with them. They responded with crap like "they have to feel that you are their friend, their learning facilitator, that you are on their side". They sent a head of department in to my classroom to show me "how to control the classroom", and she walked out half way through because she couldn't cope, leaving me on my own to finish the lesson.
About a month later, I was in a class with them and the behaviour was so bad, I just walked out. My nerves were so frayed, and I just didn't have the authority to get through to lads that, in many cases, were nigh on six foot tall, muscular, testosterone bombs. I used to wake up in a morning, feeling as though I was in a Flanders trench and today was the day I had to go over the top.
So, after that lesson, I finished my teaching day and never went back.
I later discovered that the school had lost four teachers in the previous year in the same way. They had just walked out over the behaviour of year nine and ten, and the Head had placed me with that class because none of the other subject teachers would teach them. I then discovered that a number of parents had pulled their children out of the school after I left, citing poor behaviour as the reason, and that one of the pupils had dropped a chair out of a window onto a teacher's head, causing a significant injury.
I am now of the opinion that the working environment for many teachers contravenes government legislation about workplace health and safety, that it is actually illegal for schools to allow teachers to work in such conditions.
Incidentally, there was one maths teacher at the school that never had a problem with these classes, and it came down to the fact that he had transferred into teaching after running a very successful business. He drove to the school in a top of the range Mercedes, and the lads respected him because he was wealthy and wore a Rolex. His opening pitch was "if you want to drive a car like mine, listen to what I have to say" -- and it worked. They listened.
It made me realise that teachers are, in many respects, on the back foot these days because they are do not embody the values that many teens today believe are important -- namely, those aspects of the celebrity culture of wealth and the trappings of wealth. These young people do not respect teachers because they do not see anything worth respecting: teachers have little money, don't wear designer clothes, don't drink Crystal in the club ...
In short, these young teens don't aspire to become the kind of adults that teachers represent, so they don't respect them or think teachers have anything of worth to say. Instead, they aspire to become someone who lives the life of Beyonce, or a footballer, or someone with a reality TV show. Of course, they are too young to realise that that is not going to be possible, or that they may need a high level of education to become part of that world in a supporting capacity.
Mass celebrity culture has a lot to answer for ...