Out of the box, the operating system will wait forever for you to manually close apps before it shuts down or restarts. You can change this.
How to Fix Windows' Worst Default Setting: Apps Preventing Shutdown : Read more
How to Fix Windows' Worst Default Setting: Apps Preventing Shutdown : Read more