Convert exit to _exit in ExecCmd