Better log message when an email can not be exported

Also add a text log file in ZIP output file in case of error