The WaitToKillService in the registry allows you to specify the length of time that the service control manager must wait for services to complete a shutdown request. If this value is too short, a PowerOlap database may become corrupted when the computer is shutdown. To avoid this, you can increase the value of the WaitToKillService value in the registry to ensure you allow sufficient time for the PowerOlap database to save.



1. Click Start, type "regedit" in the Open box, and then click OK.


2. For the following registry key, locate the key, click the key, on the Edit menu, click Modify, and then change the default value:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout


The default value is 20000. We suggest timing how long it takes to save your database and adding one additional minute to set as your value. Adjust if needed.


Data type
Range
Default value
REG_SZ
Milliseconds in decimal
20000 (20 seconds)


Reference:

https://technet.microsoft.com/en-us/library/cc976045.aspx