process events in consoleOutput() to display error message right away