config in prep for clustering
various cleanup/registering shards
kill the connection on error