the test would hang on wine before the implementation is in place. the CloseHandle before the WaitForSingleObject is a workaround to get the thread to exit
moving the CloseHandle was meant to show that workaround is no longer needed and that it now performs like windows
i can remove that if preferred