Updated Graph VisitorInterface and added an additional check in Profiler::setShutdownFunction()