Properly cleanup global dedupe state.