gqtp: implement #connected? and #close pair