Properly end last line of file.