Rework gFindBar hook logic, and prevent mem leak after closing tabs.