added chat diconnect support.