clean chat handler