feat(tear-down): add detachment code to browser