auto close quick fix if it is the last window