DocumentEventsListener and DepthTagger cleanup