'Close the underlying and free resources.
The NetBIOS instance should not be used to perform any operations after this method returns.
:return: None'

def close(self):

    self.sock.close()
    self.sock = None
