Fixes for exportd (and some unittests)

This should fix the problem that some export jobs abort with a DRbConnect error