Hardening

Hey team,
   With the exception of 0394454, these are mostly small optimizations and cleanups.  The former is important though, since it makes it difficult for clients to sanely handle (retry, report, etc.) a fair amount of Vertica connection problems.  Feedback encouraged!