What is recorded in the bible at I Cor Chapter 5 leaves little or no doubt as to the question of shunning. Of course, decent people are appropriately repulsed by blatantly uncivil behaviour. When crimes are committed, the judicial system imprisons offenders; for sins committed in the christian congregation, shunning, or disfellowshipping is the result if such one remains unrepentant.
The problem however lies in how far we are to go with regard to shunning, and for which sins people are to be shunned, and for how long. For example, the bible states that liars will not inherit God's kingdom, but how many people have been disfellowshipped for telling lies? There are even instances where a lie is given another name and then justified.
Even a disfellowshiped person is not totally shunned, for some elders may meet with such one after the word goes out that he be shunned. And in the family, it may become unloving, unchritain, to totally shun someone who has been involved in wrongdoing, especially as reinstatement is dependent upon the judgement of humans. We thus are in the constant danger of continuing to shun someone who has probably been forgiven by Jehovah.
Take for example David. His sins of adultery, and then murder, did not result in any immediate consequence. He did not willingly confess, and he continued in the state of sin up till about nine months. The move for his repentance was at the instance of Jehovah. And naturally, he only suffered the consequences of his actions but retained his priviledges. What do we learn from the event? That Jehovah may forgive, and we may not know it. That we may continue to shun someone already accepted by Jehovah. That we do not see the heart, or discern its leaning, which heart is the crucial element in the forgiveness of sins.
Thus, as in other matters in Christain living, we must constantly keep our limitations in view. When shunning tends towards wickedness, and separates families, causing something like hatred, then it is doubtful if it will achieve it's purpose of winning back the wrongdoer.