made the task thread a daemon to fix program termination problems