Currently the instantiation of the Nashorn REPL captures the out and err writers at the time of creation.
Perhaps it would be better to set the engines writers to the "currently bound" values of out and err before each eval.
This would allow capturing eval output.