System.Diagnostics.Debug
Debug.Close( )
None
Flushes the output buffer and closes the listeners (except for the default Output window)