close AppStateBuffer