log errors writing export file