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