Prepare for output of error.
Change mode of run.