keep waiting if thread takes a long time