Send process errors to stderr to ensure correct response via callbacks
Add a method to close the input channel for a process

Add a method to allow the client to close the input channel, so that a
program that reads data until the input channel is closed doesn't stall.