Reverted WaitForSingleObject for event handles to retry the select upon receiving an EINTR error