Use a socket wrapper to handle connection/disconnection of sockets