Destroy socket on disconnect to prevent dangling sockets