closing overtab window in certain situations