Added fclose to ExportBaseData