Manually close every task and program you can before doing a shutdown - if don't see the message you'll have to track down which program is the source of the problem.
Or check the log file created by DrWatson.exe;
What is ransomware and how do I protect my PC from WannaCry?
What I learned from my mentor, Oscar-winning VFX supervisor Phil Tippett
Siri vs Google Assistant
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.