ProcessHandler.terminate() would wait until each StreamTransfer has been closed.

Signed-off-by: 核心力量 <kernelforce@gmail.com>