change the import method to not leave cruft behind when it fails.
Merge pull request #359 from nla/js-isolate-dwImport

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