Fixed IDisposable pattern.