Minor shutdown dispose fix.