Removed multithreading, added thread timeout to deal with browser open issue