WebBrowser DisconnectedContext was detected
===

I am using a webbrowser to crawl through a website and sometimes I get this DisconnectedContext was detected exception... 

It seems that it happens when I call the Webbrowser.InvokeScript method.

Has anyone encounterd this error before?

It does not happen all the time.