Implemented IDisposable

Implemented IDisposable