Several bugfixes in export service, further improved logging