add some protections against infinite loops when getting results (eg if the mcomaster server stops), by checking that we haven't exceeded the agents DDL timeout. also stop if user navigates away from the results page.