Fixed issue with Selenium process hanging