finish importing and clean-up