made thread a daemon because of keyboard interrupt exit