See long comment above in onDestroy.