handle server disconnects and errors better in client
fix tests; remove unneeded netstring.py