close socket before deleting it in device connector
added a RAW protocol for message sends to basic tcp sockets