improved error handling an dtiming of export