More robust shutdown of sub processes.

o Make PipeTask correctly handle end of input streams.
o Un-export RMI callback so that RMI Reaper thread can exit on owning process.