Triggered in response to the disposeVisitor method.