restart webdriver and log errors