As this is windows shutdown specific, let's move this function to winshutdownmonitor.cpp instead.