Added IsDisposed flag