Improve exception handling when reading STDIN/STDERR
Improve exception handling when reading STDIN/STDERR

When the chrome process dies and we try to read STDIN/STDERR, we get
`ValueError: I/O operation on closed file` or
`OSError: [Errno 9] Bad file descriptor`.

We modify `readline_nonblock` method to return the buffer it read up to
this point.

internetarchive/brozzler,internetarchive/brozzler,internetarchive/brozzler,internetarchive/brozzler