I use selenium 2 with Phpunit. when I run a script I got this error during the run.
**PHPUnit\_Extensions\_Selenium2TestCase\_NoSeleniumException: Error connection[28] to localhost:4444/wd/hub/session/edf323b4-c6ba-471a-9966-f2b9f3718084/url: Operation timed out after 60000 milliseconds with 0 bytes received**

sometimes after several seconds and sometimes after 20+ minutes (memory: 48Mb ).
it takes a lot of time to execute the script. ( it go over like 100 news in different pages )
but I don't believe that it is a problem ( sometimes it crush after seconds ).
I already tried update the selenium and phpunit framework to last version but it doesn't helps.

Is there any option to continue the script after the connection crush? 
or avoid the crush?

I know that I can try to increase connection time, but I look for a different solution or explanation why it happens. any ideas? 

thanks.