Note that if you try to clean a drawing that has lots of Application IDs, and xrefs, it will typically run very slow.
Those App IDs are worse than anything else. I would leave them out, in favor of a tool that cleans them RealDwg style.
That is what Adesk did for me, wrote an exe that cleans regapps and layer filters. It runs outside of acad, so just does nothing if a corrupt drawing is encountered, and is very fast. Its 20x faster than any other solution I have seen, so that is a big deal.
Grab the PurgeIDs prog from cadthinking.com to get my prog, the exe's are included.
You run the exe with a filename param, it cleans one file at a time.