add error if flush appears to fail