i am opening a browser and I have a set of sequence that needs to be executed meanwhile on parallel to that i need to check whether a condition is met between the execution.If that condition is met then, i need to close that browser and reopen that and perform the remaining actions.