correctly closing this graph too