destroy method
void
destroy()
destroy the environment invoking all OnDestroy callbacks.
Implementation
void destroy() {
for ( var instance in instances)
executeProcessors(null, Lifecycle.onDestroy, instance);
instances.clear();
}