Side note: There is no need to defrag Solid state drives, All it does is cause more writes on the drive, thus decreasing life span. Perhaps there is a program/service that is not shutting down correctly.
You could try a registry edit:
Click start > run > type regedit> navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
In the right pane, right click on WaitToKillServiceTimeout and click on Modify. Type in 1000 (or b/w 1-20 seconds, default time is 12000) and click on OK.
Close regedit.
Be very careful if you do this. You shouldn't really touch the registry unless you are 100% sure on what you are doing. It may not even solve your problem. There is more than likely another issue but if you are confident then this is worth ago. Although admittedly it won't necessarily solve your issue and even if it does it won't solve the underlying issue of a program/service not terminating properly by its self.