Added a ManagedNode class (instances of this class will delete the attached WJELEMENT when the ctor is called)