Fix: Delete managed Trace::Listener when destroy TraceManager.
Add Statechart::StateMachine::GetCurrentStateId().