Wait until all the requests finish