Make sure threads being created are daemon threads