Thread added to limit the length of time that a request for ad can take. Also prevents infinite hanging.