5.15. What happens if my test returns when there are still threads running?

The harness runs the main action's main method in its own thread group. The thread group will be destroyed by the harness when the main method returns. It is the responsibility of the test to return only after the appropriate tasks have been completed by its subsidiary threads.