change the import method to not leave cruft behind when it fails.