Always create and close HandleScopes.

Fixes huge memory leak found by @mielvds.