ensure persistent v8 handles are released on v8 thread