tracing: stop command line recording when tracing is disabled