Fix bug.  raw_device should return the socket object