Type of arg 1 to close must be HANDLE (not )