code: func (journal *txJournal) close() error {
  	var err error
  
  	if journal.writer != nil {
  		err = journal.writer.Close()
  		journal.writer = nil
  	}
  	return err
  }
docs: // close flushes the transaction journal contents to disk and closes the file.