better logout for chat