Dispose the GDM using IDisposable