I think instead of using the global variable `finishCallback`, it might be cleaner to pass the callback through to `_doExport()`.