Revert "Forgot to close the handle"

This reverts commit 16896a780d2ea38d9ab69426a46695690f52a043.