SERVER-5651: Better implementation of Windows server shutdown