Bug fix: Fix GC related crash.

Usage of handles seems to be required for proper object deletion order
in the garbage collector.

There might be more bugs like this somewhere.