The applications quits if there are no window left.