Fix bug with trace socket init and add ehmi command

EHMi command is use to start and stop live tracing