Main thread will now wait (after being detached) for all non-daemon threads to exit before exiting.