graph should be set back to null in order to avoid accidental leaking to somewhere, where it doesn't belong.