Avoid trace errors when unregistering command line commands (related to issue 7170)