Cleanup after running UCDetector