Fixing FxCop double dispose warning