ORACLETOOLS-118: Fixed AbstractApplication.OutputRedirector to write all output befrore terminating and PipedApplicationConsole so that its streams can be read after closing the Application