Replace a couple of IDisposable casts/calls with using{} blocks syntax