flushBeforeEnder