I was just trying to debug your code from my machine sitting here. Check out what is the value in the handle by debugging.