When an object fails to import successfully, clean up orphaned objects.