Handle server exceptions
Be a little bit more orderly about clients and nodes

Try to close the client connection on each test to not have stale connections.
Ensure we aren't writing to a closed leveldb database
Merge branch 'handle-server-exceptions' into travis-random-testing
Merge branch 'enforce-closed-dbs' into travis-random-testing