A handle may be marked as not closable. This is an obscure but important property of handles and their associated Kernel objects.
A handle is marked as not closable when the handle-number has the enumerator CObjectIx::ENoClose
ORed into it. For example, the current thread is always marked as not closable.