Removes the IDisposable interface