Close sockets on disconnect