Delete window tab when window is closed.