[aat] Flush rest of buffer if state machine failed
2 files changed