fix error when stop on not started selenium.