fix dangling handle
Merge pull request #437 from adobe/jeff/fix-dangling-handle

Fix dangling handle