added timeout to task.get()