make sure WebDriver is quitted if initialization failed