[TIMOB-17046] Moved the sending of analytics from the 'exit' event to the command finished callback.