Windows: close handle