Issue #216: Add process.flush() and process.flushError(), with tests.