this way the batch loading is all shut down cleanly. Question: Do you need to shutdown at the bgraph level? (BatchGraph is new to Blueprints and I haven't studied it).
I've fixed this in the code. There is indeed a BatchGraph.shutdown() method that should also be used. I've added bgraph.shutdown() to the finally{} block also.
wrap graph.shutdown() in a finally block.
this way the batch loading is all shut down cleanly. Question: Do you need to shutdown at the bgraph level? (BatchGraph is new to Blueprints and I haven't studied it).