Ah, it's `GetLastError`. Do you think `ERROR_ACCESS_DENIED` and `ERROR_SHARING_VIOLATION` would be sufficient, or are there more error codes that hint retrying might help?