made thread a daemon and increased timeout of tasks