Fix HTTS to wait for all the tasks to finish in a sane way.