Made threads Daemons to make them quit when the program quits