This method destroys the default active class or object for the framework. It supports static instances of active classes (particularly the static instance of OMMainThread).
If you have a custom RTOS adaptor that deletes threads in OSEndApplication, modify the adapter to call destroyThread instead of the delete operator.
If you create by-value instances of an active class, you should override the destroyThread method to prevent the system from attempting to delete the static instances.