Before addressing the question itself, I must say the way you phrase your question seems adversarial and unwilling to debate. Specifically, your explicit question is:
Can't we do anything and take a strict action to avoid this scenario
in future?
Avoid what? The fact that users closed a question? Why? This could only be because you think they wrongly closed a question, and thus it would be civil to let them have a voice before. You left little space for that. The title suffers from a similar problem. The appropriate question, hidden behind your post, is: "Why was this question closed? I believe it was unjustly closed, (and here is why). Do you agree? Why/why not?", or something of the sort.
I disagree with the other answer that was given, which is why I am giving this one. I believe that the major reason (in that it is the decisive factor) to why the question was closed was due to disruptiveness of (main) OP. There is not a rule I'm aware of which formally allows a question to be closed under that basis. However, the circumstances are extraneous: (main) OP was blatantly rude. quid mentions some examples here. There is a rule of thumb for the site in general which I hold with greater value than close-vote reasons, which I think the site as an entity does so as well since it is number 2 in the "Our model" page (preceded only by the overwhelmingly important technicality of how to format mathematics), which is: Be nice.
I think the question is clear enough. I think voting to close may have been an honest attempt from the close-voters to keep the site sanitized from disruptiveness, seeing that this was the only thing that they directly had power to do in order to "contain" a disruptive user. This may be effective and well-intentioned, but I honestly don't know if this is appropriate or not. It seems a straight-from-the-book "the ends justify the means" kind of argument. However, if there were no other means to deal with this, I think I would end up agreeing with closing.
My take on the issue, after some thought, is: I disagree with the closure of the question, since I believe there are more appropriate ways to handle this. I believe that it is the job of moderators to sanitize the site of rude content, so I think the appropriate action would be to flag those comments and leave it be (maybe comment something to add to the voices trying to make sense out of the person, but that would be inviting yourself to headaches). Then, it would be left to them what to be done about the whole situation, question and all (I would consider suspension a fair treatment in this case, for example).
PS: If any of the close-voters disagree with what I said was the major reason for the votes, feel free to point it out.