puppetlabs/puppet — pull request #1999 by mrwulf (2013-10-15 20:15:29+00:00)
Title: (22878) Scope the call to CloseHandle

Without this patch the ensure block calls a private method (throwing an error). By continuing the scope used in the main block the correct method is called.