According to the information in the figure, the customized service cloud-init may be looking for or waiting for network equipment (about 125s).
It may be because of the customized Alibaba Cloud automated processing script. This means that you need to wait for about 2 minutes for timeout before ECS is shut down.