Describes the cause and action for error messages.
shutdown does not log out
Flip Off 'Fast Startup' to Force Windows 10 to Shut Down for Real
Win 10 restart or shutdown doesn't log off - Windows 10 Forums
Fall Creators Update Doesn't Log Out Solved - Windows 10 Forums
What Exactly Happens When You Shut Down or Sign Out of Windows?