Minor reworks for CloseHandle
Using SafeFileHandle