Fix handle leaks in native code