Merge "Unregister app when advertise failed after registration." into lmp-dev