Merge "Check if the trace was stopped before starting the tracing thread" into rvc-dev