Closes the component writing stream.
procedure Save();
This method will close any open XML elements, and then close the OutputFile if necessary.