Fix buffer flushing to work with tei2korapxml

Change-Id: I54eef64bea40f4ebb528e7f9870b9277000a4c13
diff --git a/matrix.go b/matrix.go
index 44b2180..ecb22be 100644
--- a/matrix.go
+++ b/matrix.go
@@ -369,9 +369,16 @@
 
 				// No more runes to read
 				if err != nil {
-					eof = true
-					break
+					if err == io.EOF {
+						eof = true
+						break
+					}
+
+					log.Fatalln(err)
+					os.Exit(1)
+					return false
 				}
+
 				buffer[buffi] = char
 				buffi++
 			}