This method "kills" all
threads in an application except for the main thread and the thread
running the cleanupAllThreads method.
The method supports static instances of active classes
(particularly the static instance of OMMainThread).
Signaturestatic OMThread* cleanupAllThreads();
Note: The cleanupAllThreads method
is only called in RTOSes where the process cannot be "exited" in a
simple manner.