Fix for #380, fallback to last open tab when closing tabs

OK that's resolved with the other issue (passing the wrong object in the trigger), removing the close event didn't work before.