Make all non-I/O threads in ServerClientDemo daemon so that System.exit is not needed.