\closeout <file id>
Closes an additional output file, described by its file id, which is a number between 0 and 15. See also \openout, \write and \newwrite.