Can close the sockets