Fixing test failure, changing error handling when webdriver has quit