flushes all errors