close socket when user leaves. close #29