Say I use

wb as webclient
wb.downloadstring(url)

Say 40 seconds have passed. I want wb to just give up. How to do so?