server handles disconnect