making tab unbindings a bit more "correct" by doing unbinding manually when tab closes (as opposed to doing it as each event comes through)