Now with transitions when windows are closed