Closes the class writing stream.
def save() -> None: ...
This method will close any open XML elements, and then close the output_file if necessary.