End a tracing session by use one of the following methods:
Otherwise, the trace session ends automatically when the application terminates.