Catching more exceptions, more tests.

Added more extensive testing to ExceptionsAsMissesMapping, including
in the cases where the server disconnects.  Through that, found places
where more exceptions needed to be caught.
Improving Python 2 BrokenPipeError