added logging to exporter.rb and fix problem with concurrent exports