join_threadsJoin all terminated threads. For normal applications, dealing with
terminated threads must be part of the application logic, either
detaching the thread before termination or making sure it will be
joined. The predicate join_threads/0
is intended for interactive sessions to reclaim resources from threads
that died unexpectedly during development.