remove raise, add exit from thread if browser conection broken