Merge "Flush events before stopping filter."