Call the subclass flush function.
Reset pending_eos.