fix reconnecting to webdriver after failure