FIX: stats are not updated on command termination

updates are sent on update completion event
updates are sent on update status and completion event (i.e. when command ends)
Merge branch 'hotfix/update_stats_at_command_end'