MajorGeeks published a tutorial about disabling AutoEndTasks in Windows 10.
How to Disable AutoEndTasks at Shut Down, Restart, or Sign Out
HungAppTimeout, or AutoEndTasks, is a feature that pauses Windows from shutting down, restarting, or signing out so that any open work isn't lost or if an app didn't close. With a simple registry edit, we can disable this from happening.
How to Disable AutoEndTasks at Shut Down, Restart, or Sign Out - MajorGeeks