check that connection closes on Graph.close()