handle Dom objects in dispose call.