CloseHandle can block for extended periods of time in certain cases, causing the whole thread to be blocked otherwise.