added Link.Session.Close() method