Block until Thread terminates, and unify Status with its result status. For the possible status values, see get_engine_property/3, with the difference that here exited(Term) may contain an arbitrary term.
After this call, the DTR-thread is destroyed and its handles and alias are invalid.