BUGFIX: don't hang when trying to quit while multiple windows are open and the active one has more downloads than the others.