@nulltoken I don't see why that is needed, the code already returns null when the handle is invalid.