Reverted PumpStreamHandler changes.
Moved joining inputThread before outputThread.