BS: Fix SWTError when closing BrowserSim