removes socket on conn