tests pass
Added tests to deal with disconnects to try to get better code coverage; added code to turn off SIGPIPE