Get rid of obsolete progress_func argument.
Fix session handling in exporter threads.