Makde sure that all threads are marked as daemon threads.