Better error reporting for the line that caused the error. Continue to do the purging even if import fails.