Close import service when import as.
Merge pull request #1655 from jburel/close-import-as

Close import service when import as.