allow closing of graph handles