The RVRT command closes an output file opened with the DIVERT command.  For an example of its use, see the DIVERT command.