public function stop()
{
// stop the web browser
if (is_object($this->browserSession)) {
$this->browserSession->close();
$this->browserSession = null;
}
// now stop the proxy
if (is_object($this->proxySession)) {
try {
$this->proxySession->close();
} catch (Exception $e) {
// do nothing - we don't care!
}
$this->proxySession = null;
}
}