release c++ instance when the corresponding js object is released