'Close the raw socket'

def close(self):

    if (self._socket is not None):
        self._socket.close()
        self._socket = None
    else:
        raise error.TestError('Raw    socket    not    open')
