onDestroy is to tell extension implementations do sth. I think we still need it.
Besides that, you should call 'destroy' to free native objects.