The TF Cleanup function calls GetQueuedCompletionStatus directly or indirectly. I would like to know what timeout parameter is set for this call. I would like it to be less than the value used by my watchdog timer, currently 2 minutes, then if there is a network issue preventing that function from completing successfully it will be abandoned and the application can shut down anyway.
But if the timeout is longer or INFINITE, then our freeze detector will trigger and the user gets a crash report. I could disable the freeze detector during this call, but then I presume GetQueuedCompletionStatus will never end and the app will not shutdown by itself.