Don't drop data when StreamPumper is stopped between reading data and writing it.
Avoid race where StreamPumper is stopped (e.g. after process exit) before thread running StreamPumper has entered the run() method.