Add public method to close the file (this will print blank lines as well
to show that the next write is a reopening the file)