It has been reported through a series of memoirs that Imam used to leave session where backbiting or malicious talks happened about a person or name of any individual was mentioned with some impolite attributes.
Imam either used to leave the site or prevented from happening moral indecencies.
(A memoirs by Ayatollah Khansari)