Graph shutdown for testing