Windows: close file handle if the call to GetFileSize fails.