Add missing FinalizeGraph() call