My laptop won't shut down (Solved)
To solve this problem I went to system settings > advanced tab > performance > virtual memory, then disabled paging. (I selected "no page file." Setting the size to 0mb apparently doesn't work). Then, I enabled paging again. After a reboot, everything was fine. Windows didn't get stuck anymore and was able to shut down.
or