Implemented IDisposable.