handle ECONNRESET better.
slightly smarter restart