If the system has to kill off processes that are holding up the shutdown process, then this happens. Could be as simple as a a command prompt sitting somewhere within /mnt/user, or could be a container that refuses to stop. A lot of time, it's a Windows VM (in Settings - VM settings, set the system to hibernate everything during shutdowns, and install the virtio guest tools on the VM)